
import java.util.ArrayList;
import java.util.List;

import javax.inject.Inject;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;

import com.zero.mms.model.SalaryItem;
import com.zero.youxiao.dao.SalaryItemDao;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext.xml")
@Transactional
public class TestUserDataDao {

	@Inject
	SalaryItemDao salaryItemDao;
	
	@Test
	public void test(){
		SalaryItem salaryItem = new SalaryItem();
		salaryItem.setSalaryItemName("测试");
		salaryItemDao.add(salaryItem);
	}
}
